package com.bsj.power.common.def.entity.room;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author LiJiaXin
 * @version 1.0.0
 * @description Room
 * @time 2024/9/3 11:25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tab_room")
public class Room {

    /**
     * 主键id
     */
    @TableId(value = "room_id", type = IdType.AUTO)
    private Long roomId;

    /**
     * 房间号
     */
    @TableField(value = "room_no")
    private String roomNo;

    /**
     * 房间位置点
     */
    @TableField(value = "room_point")
    private String roomPoint;

    /**
     * 楼层（几米层）-9.5m1;0m2;7.5m3;16m4;23m5
     */
    @TableField(value = "floor")
    private Integer floor;

    /**
     * 机组号 目前只有1-2号机组
     */
    @TableField(value = "unit_no")
    private Integer unitNo;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * mapId
     */
    @TableField("map_id")
    private Integer mapId;
}
